package com.trade.model;

/**
 * 
 * 供货商
 * 
 * @author Lin Yang
 * 
 */
public class Supplier {
    private long id;
    private int type;
    private String name;
    private String address;
    private String contract;

    public Supplier() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContract() {
        return contract;
    }

    public void setContract(String contract) {
        this.contract = contract;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("Supplier [id=");
        builder.append(id);
        builder.append(", type=");
        builder.append(type);
        builder.append(", name=");
        builder.append(name);
        builder.append(", address=");
        builder.append(address);
        builder.append(", contract=");
        builder.append(contract);
        builder.append("]");
        return builder.toString();
    }

}
